.panel-primary {
  border: none;
  border-radius: 0;
  .panel-heading {
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 0;
    margin: 0;
    .panel-title {
      margin: auto;
      padding: auto;
      display: inline-block;
    }
  }
}

.mask {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  transition: all 0.5s;
  visibility: hidden;
}

.side-container {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  max-width: 300px;
  min-width: 200px;
  height: 100%;
  z-index: 2001;
  opacity: 1;
  visibility: hidden;
  transform: translate(100%, 0);
  transition: all 0.6s;
  .user-info {
    img {
      width: 100px;
      height: 100px;
    }
    .nickname {
      font-size: 18px;
      margin-top: 5px;
    }
  }
  .menu {
    padding: 0;
    font-size: 16px;
    ul {
      list-style: none;
      margin: 10px -15px;
      padding: 0;
      li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e0e0e0;
        a {
          color: #222222;
          display: block;
          padding: 8px 25px;
          background-color: #ffffff;
          .glyphicon {
            margin-right: 5px;
          }
        }
        a:focus,
        a:active,
        a:visited,
        a:hover {
          color: #222222;
          text-decoration: none;
        }
      }
      li.active a {
        background-color: #f0f0f0;
        color: #666666;
        cursor: not-allowed;
      }
      li:first-child {
        border-top: 1px solid #e0e0e0;
      }
    }
  }
}

.mask.active,
.side-container.active {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}

/// 菜单切换效果
ul {
  li {
    position: relative;
    overflow: hidden;
  }
  li.active {
    border: none;
  }
  li a:after {
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 0;
    content: ' ';
    width: 100%;
    height: 2px;
    transition: all 0.2s ease-in-out;
    background-color: rgb(88, 109, 204);
    opacity: 0;
    visibility: hidden;
    transform: scaleX(0);
  }
  li.active a:after {
    opacity: 1;
    visibility: visible;
    transform: scaleX(1);
  }
}
